import sys
from .interface import Interface

class RTLInterface(Interface):
    def __init__(self, fc, ran):
        self.ran = ran
        self.fc = fc
        ran.fc = fc
        ran.default_sample_rate = 1920000.0
        Interface.__init__(self,ran)
    def prepare(self,s):
        self.rfd,self.fs_start = self.getFrameData(0,self.fl*s)
        return self.rfd
